<html>
	
	<head>
		<title>StackOverflow - Login de Usuários</title>
		 <meta name="layout" content="main"/>
		<r:require modules="bootstrap"/>
	</head>
	
	<body>
	
		<g:form action="doLogin">
			
			<div class="container">
			
				<h2>StackOverflow</h2>
				
				<p>Realize Login</p>
				
				<g:if test="${flash.errors}">
					<br>
					${flash.errors}
					<br>
				</g:if>
				
				<table>
					<tr>
						<td>Usuário:</td>
						<td><g:textField name="username"/></td>
					</tr>
					<tr>
						<td>Senha:</td>
						<td><g:passwordField name="password"/></td>
					</tr>
				</table>
				
				<br>
				<g:submitButton name="Logar"/>
				
			</div>
		
		</g:form>	
		
	</body>
	
</html>

